﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Com.CMS263.PO;

namespace Com.CMS263.DAO
{
     public  class ItemDAO
    {
         public void Add(Item item)
         {
             DBHelper.TransInsert(item);
         }
         public void Modify(Item item)
         {
             DBHelper.TransUpdate(item);
         }
         public void Delete(int id)
         {
             DBHelper.ExecuteHQL("delete from Item where id="+id+"");
         }
    }
}
